//
//  UIImageView+category.swift
//  FM
//
//  Created by x on 2017/9/1.
//  Copyright © 2017年 HLB. All rights reserved.
//

import UIKit

extension UIImageView {
    
    class func layoutImageView() -> UIImageView {
        let tt = UIImageView()
        tt.translatesAutoresizingMaskIntoConstraints  = false
        
        return tt
    }
    
    class func imageWith(radios:CGFloat, imageName:String) ->UIImageView {
        
        let tt = UIImageView.layoutImageView()
        tt.image = UIImage.init(named: imageName)
        tt.layer.cornerRadius = radios
        tt.layer.masksToBounds = true
        
        return tt
    }
}
